<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span id="local-6989586621679070959"><span id="local-6989586621679070960"></span></span><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Data.Time.LocalTime.Internal.CalendarDiffTime</span><span>
</span><span id="line-2"></span><span>    </span><span class="hs-special">(</span><span>
</span><span id="line-3"></span><span>        </span><span class="annot"><span class="hs-comment">-- * Calendar Duration</span></span><span>
</span><span id="line-4"></span><span>        </span><span class="hs-keyword">module</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html"><span class="hs-identifier">Data.Time.LocalTime.Internal.CalendarDiffTime</span></a></span><span>
</span><span id="line-5"></span><span>    </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span class="hs-cpp">
#if MIN_VERSION_base(4,8,0)
</span><span class="hs-cpp">#else
</span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Monoid</span><span class="hs-cpp">
#endif
</span><span class="hs-cpp">#if MIN_VERSION_base(4,9,0) &amp;&amp; !MIN_VERSION_base(4,11,0)
</span><span class="hs-keyword">import</span><span> </span><span class="hs-identifier">Data.Semigroup</span><span> </span><span class="hs-keyword">hiding</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">option</span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Fixed.html#"><span class="hs-identifier">Data.Fixed</span></a></span><span>
</span><span id="line-14"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Typeable.html#"><span class="hs-identifier">Data.Typeable</span></a></span><span>
</span><span id="line-15"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.Data.html#"><span class="hs-identifier">Data.Data</span></a></span><span>
</span><span id="line-16"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Calendar.CalendarDiffDays.html"><span class="hs-identifier">Data.Time.Calendar.CalendarDiffDays</span></a></span><span>
</span><span id="line-17"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.NominalDiffTime.html"><span class="hs-identifier">Data.Time.Clock.Internal.NominalDiffTime</span></a></span><span>
</span><span id="line-18"></span><span>
</span><span id="line-19"></span><span class="hs-keyword">data</span><span> </span><span id="CalendarDiffTime"><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-var">CalendarDiffTime</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="CalendarDiffTime"><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-var">CalendarDiffTime</span></a></span></span><span>
</span><span id="line-20"></span><span>    </span><span class="hs-special">{</span><span> </span><span id="ctMonths"><span class="annot"><span class="annottext">CalendarDiffTime -&gt; Integer
</span><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#ctMonths"><span class="hs-identifier hs-var hs-var">ctMonths</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Integer</span></span><span>
</span><span id="line-21"></span><span>    </span><span class="hs-special">,</span><span> </span><span id="ctTime"><span class="annot"><span class="annottext">CalendarDiffTime -&gt; NominalDiffTime
</span><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#ctTime"><span class="hs-identifier hs-var hs-var">ctTime</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.NominalDiffTime.html#NominalDiffTime"><span class="hs-identifier hs-type">NominalDiffTime</span></a></span><span>
</span><span id="line-22"></span><span>    </span><span class="hs-special">}</span><span> </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679070941"><span id="local-6989586621679070947"><span class="annot"><span class="annottext">CalendarDiffTime -&gt; CalendarDiffTime -&gt; Bool
(CalendarDiffTime -&gt; CalendarDiffTime -&gt; Bool)
-&gt; (CalendarDiffTime -&gt; CalendarDiffTime -&gt; Bool)
-&gt; Eq CalendarDiffTime
forall a. (a -&gt; a -&gt; Bool) -&gt; (a -&gt; a -&gt; Bool) -&gt; Eq a
/= :: CalendarDiffTime -&gt; CalendarDiffTime -&gt; Bool
$c/= :: CalendarDiffTime -&gt; CalendarDiffTime -&gt; Bool
== :: CalendarDiffTime -&gt; CalendarDiffTime -&gt; Bool
$c== :: CalendarDiffTime -&gt; CalendarDiffTime -&gt; Bool
</span><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var">Eq</span></span></span></span><span class="hs-special">,</span><span>
</span><span id="line-23"></span><span>    </span><span id="local-6989586621679070904"><span id="local-6989586621679070906"><span id="local-6989586621679070908"><span id="local-6989586621679070910"><span id="local-6989586621679070912"><span id="local-6989586621679070914"><span id="local-6989586621679070916"><span id="local-6989586621679070918"><span id="local-6989586621679070920"><span id="local-6989586621679070922"><span id="local-6989586621679070924"><span id="local-6989586621679070926"><span id="local-6989586621679070930"><span id="local-6989586621679070936"><span class="annot"><span class="annottext">Typeable CalendarDiffTime
Typeable CalendarDiffTime
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; CalendarDiffTime -&gt; c CalendarDiffTime)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CalendarDiffTime)
-&gt; (CalendarDiffTime -&gt; Constr)
-&gt; (CalendarDiffTime -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CalendarDiffTime))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e))
    -&gt; Maybe (c CalendarDiffTime))
-&gt; ((forall b. Data b =&gt; b -&gt; b)
    -&gt; CalendarDiffTime -&gt; CalendarDiffTime)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CalendarDiffTime -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r)
    -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CalendarDiffTime -&gt; r)
-&gt; (forall u.
    (forall d. Data d =&gt; d -&gt; u) -&gt; CalendarDiffTime -&gt; [u])
-&gt; (forall u.
    Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CalendarDiffTime -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d)
    -&gt; CalendarDiffTime -&gt; m CalendarDiffTime)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d)
    -&gt; CalendarDiffTime -&gt; m CalendarDiffTime)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d)
    -&gt; CalendarDiffTime -&gt; m CalendarDiffTime)
-&gt; Data CalendarDiffTime
CalendarDiffTime -&gt; DataType
CalendarDiffTime -&gt; Constr
(forall b. Data b =&gt; b -&gt; b)
-&gt; CalendarDiffTime -&gt; CalendarDiffTime
forall a.
Typeable a
-&gt; (forall (c :: * -&gt; *).
    (forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
    -&gt; (forall g. g -&gt; c g) -&gt; a -&gt; c a)
-&gt; (forall (c :: * -&gt; *).
    (forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
    -&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c a)
-&gt; (a -&gt; Constr)
-&gt; (a -&gt; DataType)
-&gt; (forall (t :: * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d. Data d =&gt; c (t d)) -&gt; Maybe (c a))
-&gt; (forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
    Typeable t =&gt;
    (forall d e. (Data d, Data e) =&gt; c (t d e)) -&gt; Maybe (c a))
-&gt; ((forall b. Data b =&gt; b -&gt; b) -&gt; a -&gt; a)
-&gt; (forall r r'.
    (r -&gt; r' -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall r r'.
    (r' -&gt; r -&gt; r) -&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; a -&gt; r)
-&gt; (forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; [u])
-&gt; (forall u. Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; a -&gt; u)
-&gt; (forall (m :: * -&gt; *).
    Monad m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; (forall (m :: * -&gt; *).
    MonadPlus m =&gt;
    (forall d. Data d =&gt; d -&gt; m d) -&gt; a -&gt; m a)
-&gt; Data a
forall u.
Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CalendarDiffTime -&gt; u
forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; CalendarDiffTime -&gt; [u]
forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CalendarDiffTime -&gt; r
forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CalendarDiffTime -&gt; r
forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; CalendarDiffTime -&gt; m CalendarDiffTime
forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; CalendarDiffTime -&gt; m CalendarDiffTime
forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CalendarDiffTime
forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; CalendarDiffTime -&gt; c CalendarDiffTime
forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CalendarDiffTime)
forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e))
-&gt; Maybe (c CalendarDiffTime)
gmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; CalendarDiffTime -&gt; m CalendarDiffTime
$cgmapMo :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; CalendarDiffTime -&gt; m CalendarDiffTime
gmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; CalendarDiffTime -&gt; m CalendarDiffTime
$cgmapMp :: forall (m :: * -&gt; *).
MonadPlus m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; CalendarDiffTime -&gt; m CalendarDiffTime
gmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; CalendarDiffTime -&gt; m CalendarDiffTime
$cgmapM :: forall (m :: * -&gt; *).
Monad m =&gt;
(forall d. Data d =&gt; d -&gt; m d)
-&gt; CalendarDiffTime -&gt; m CalendarDiffTime
gmapQi :: forall u.
Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CalendarDiffTime -&gt; u
$cgmapQi :: forall u.
Int -&gt; (forall d. Data d =&gt; d -&gt; u) -&gt; CalendarDiffTime -&gt; u
gmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; CalendarDiffTime -&gt; [u]
$cgmapQ :: forall u. (forall d. Data d =&gt; d -&gt; u) -&gt; CalendarDiffTime -&gt; [u]
gmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CalendarDiffTime -&gt; r
$cgmapQr :: forall r r'.
(r' -&gt; r -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CalendarDiffTime -&gt; r
gmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CalendarDiffTime -&gt; r
$cgmapQl :: forall r r'.
(r -&gt; r' -&gt; r)
-&gt; r -&gt; (forall d. Data d =&gt; d -&gt; r') -&gt; CalendarDiffTime -&gt; r
gmapT :: (forall b. Data b =&gt; b -&gt; b)
-&gt; CalendarDiffTime -&gt; CalendarDiffTime
$cgmapT :: (forall b. Data b =&gt; b -&gt; b)
-&gt; CalendarDiffTime -&gt; CalendarDiffTime
dataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e))
-&gt; Maybe (c CalendarDiffTime)
$cdataCast2 :: forall (t :: * -&gt; * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d e. (Data d, Data e) =&gt; c (t d e))
-&gt; Maybe (c CalendarDiffTime)
dataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CalendarDiffTime)
$cdataCast1 :: forall (t :: * -&gt; *) (c :: * -&gt; *).
Typeable t =&gt;
(forall d. Data d =&gt; c (t d)) -&gt; Maybe (c CalendarDiffTime)
dataTypeOf :: CalendarDiffTime -&gt; DataType
$cdataTypeOf :: CalendarDiffTime -&gt; DataType
toConstr :: CalendarDiffTime -&gt; Constr
$ctoConstr :: CalendarDiffTime -&gt; Constr
gunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CalendarDiffTime
$cgunfold :: forall (c :: * -&gt; *).
(forall b r. Data b =&gt; c (b -&gt; r) -&gt; c r)
-&gt; (forall r. r -&gt; c r) -&gt; Constr -&gt; c CalendarDiffTime
gfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; CalendarDiffTime -&gt; c CalendarDiffTime
$cgfoldl :: forall (c :: * -&gt; *).
(forall d b. Data d =&gt; c (d -&gt; b) -&gt; d -&gt; c b)
-&gt; (forall g. g -&gt; c g) -&gt; CalendarDiffTime -&gt; c CalendarDiffTime
</span><a href="../../base/src/Data.Data.html#Data"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Data</span></a></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span class="hs-cpp">
#if __GLASGOW_HASKELL__ &gt;= 802
</span><span>    </span><span class="hs-comment">-- ^ @since 1.9.2</span><span class="hs-cpp">
#endif
</span><span>    </span><span class="hs-special">,</span><span class="annot"><a href="../../base/src/Data.Typeable.Internal.html#Typeable"><span class="hs-identifier hs-type">Typeable</span></a></span><span class="hs-cpp">
#if __GLASGOW_HASKELL__ &gt;= 802
</span><span>    </span><span class="hs-comment">-- ^ @since 1.9.2</span><span class="hs-cpp">
#endif
</span><span>    </span><span class="hs-special">)</span><span class="hs-cpp">

#if MIN_VERSION_base(4,9,0)
</span><span class="hs-comment">-- | Additive</span><span>
</span><span id="line-35"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679070898"><span id="local-6989586621679070900"><span class="annot"><a href="../../base/src/GHC.Base.html#Semigroup"><span class="hs-identifier hs-type">Semigroup</span></a></span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-type">CalendarDiffTime</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-36"></span><span>    </span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-type">CalendarDiffTime</span></a></span><span> </span><span id="local-6989586621679070894"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070894"><span class="hs-identifier hs-var">m1</span></a></span></span><span> </span><span id="local-6989586621679070893"><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679070893"><span class="hs-identifier hs-var">d1</span></a></span></span><span> </span><span id="local-6989586621679070892"><span class="annot"><span class="annottext">&lt;&gt; :: CalendarDiffTime -&gt; CalendarDiffTime -&gt; CalendarDiffTime
</span><a href="../../base/src/GHC.Base.html#%3C%3E"><span class="hs-operator hs-var hs-var hs-var hs-var">&lt;&gt;</span></a></span></span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-type">CalendarDiffTime</span></a></span><span> </span><span id="local-6989586621679070891"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070891"><span class="hs-identifier hs-var">m2</span></a></span></span><span> </span><span id="local-6989586621679070890"><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679070890"><span class="hs-identifier hs-var">d2</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; NominalDiffTime -&gt; CalendarDiffTime
</span><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-var">CalendarDiffTime</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070894"><span class="hs-identifier hs-var">m1</span></a></span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Integer
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070891"><span class="hs-identifier hs-var">m2</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679070893"><span class="hs-identifier hs-var">d1</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime -&gt; NominalDiffTime -&gt; NominalDiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2B"><span class="hs-operator hs-var">+</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679070890"><span class="hs-identifier hs-var">d2</span></a></span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span class="hs-comment">-- | Additive</span><span>
</span><span id="line-39"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679070883"><span class="annot"><a href="../../base/src/GHC.Base.html#Monoid"><span class="hs-identifier hs-type">Monoid</span></a></span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-type">CalendarDiffTime</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-40"></span><span>    </span><span id="local-6989586621679070880"><span class="annot"><span class="annottext">mempty :: CalendarDiffTime
</span><a href="../../base/src/GHC.Base.html#mempty"><span class="hs-identifier hs-var hs-var hs-var hs-var">mempty</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; NominalDiffTime -&gt; CalendarDiffTime
</span><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-var">CalendarDiffTime</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime
</span><span class="hs-number">0</span></span><span class="hs-cpp">
#if MIN_VERSION_base(4,9,0)
</span><span>    </span><span id="local-6989586621679070878"><span class="annot"><span class="annottext">mappend :: CalendarDiffTime -&gt; CalendarDiffTime -&gt; CalendarDiffTime
</span><a href="../../base/src/GHC.Base.html#mappend"><span class="hs-identifier hs-var hs-var hs-var hs-var">mappend</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">CalendarDiffTime -&gt; CalendarDiffTime -&gt; CalendarDiffTime
forall a. Semigroup a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Base.html#%3C%3E"><span class="hs-operator hs-var">(&lt;&gt;)</span></a></span><span class="hs-cpp">
#else
</span><span>    </span><span class="hs-identifier">mappend</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">CalendarDiffTime</span><span> </span><span class="hs-identifier">m1</span><span> </span><span class="hs-identifier">d1</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">CalendarDiffTime</span><span> </span><span class="hs-identifier">m2</span><span> </span><span class="hs-identifier">d2</span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="hs-identifier">CalendarDiffTime</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">m1</span><span> </span><span class="hs-operator">+</span><span> </span><span class="hs-identifier">m2</span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="hs-identifier">d1</span><span> </span><span class="hs-operator">+</span><span> </span><span class="hs-identifier">d2</span><span class="hs-special">)</span><span class="hs-cpp">
#endif
</span><span>
</span><span id="line-47"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679070873"><span id="local-6989586621679070876"><span class="annot"><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-type">Show</span></a></span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-type">CalendarDiffTime</span></a></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-48"></span><span>    </span><span id="local-6989586621679070863"><span class="annot"><span class="annottext">show :: CalendarDiffTime -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var hs-var hs-var hs-var">show</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-type">CalendarDiffTime</span></a></span><span> </span><span id="local-6989586621679070861"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070861"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span id="local-6989586621679070860"><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679070860"><span class="hs-identifier hs-var">t</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;P&quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">Integer -&gt; String
forall a. Show a =&gt; a -&gt; String
</span><a href="../../base/src/GHC.Show.html#show"><span class="hs-identifier hs-var">show</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070861"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;MT&quot;</span></span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">Bool -&gt; Pico -&gt; String
forall {k} (a :: k). HasResolution a =&gt; Bool -&gt; Fixed a -&gt; String
</span><a href="../../base/src/Data.Fixed.html#showFixed"><span class="hs-identifier hs-var">showFixed</span></a></span><span> </span><span class="annot"><span class="annottext">Bool
</span><span class="hs-identifier hs-var">True</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">NominalDiffTime -&gt; Pico
forall a b. (Real a, Fractional b) =&gt; a -&gt; b
</span><a href="../../base/src/GHC.Real.html#realToFrac"><span class="hs-identifier hs-var">realToFrac</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679070860"><span class="hs-identifier hs-var">t</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="../../base/src/Data.Fixed.html#Pico"><span class="hs-identifier hs-type">Pico</span></a></span><span class="hs-special">)</span><span> </span><span class="annot"><span class="annottext">String -&gt; ShowS
forall a. [a] -&gt; [a] -&gt; [a]
</span><a href="../../base/src/GHC.Base.html#%2B%2B"><span class="hs-operator hs-var">++</span></a></span><span> </span><span class="annot"><span class="annottext">String
</span><span class="hs-string">&quot;S&quot;</span></span><span>
</span><span id="line-49"></span><span>
</span><span id="line-50"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#calendarTimeDays"><span class="hs-identifier hs-type">calendarTimeDays</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Calendar.CalendarDiffDays.html#CalendarDiffDays"><span class="hs-identifier hs-type">CalendarDiffDays</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-type">CalendarDiffTime</span></a></span><span>
</span><span id="line-51"></span><span id="calendarTimeDays"><span class="annot"><span class="annottext">calendarTimeDays :: CalendarDiffDays -&gt; CalendarDiffTime
</span><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#calendarTimeDays"><span class="hs-identifier hs-var hs-var">calendarTimeDays</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Time.Calendar.CalendarDiffDays.html#CalendarDiffDays"><span class="hs-identifier hs-type">CalendarDiffDays</span></a></span><span> </span><span id="local-6989586621679070856"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070856"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span id="local-6989586621679070855"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070855"><span class="hs-identifier hs-var">d</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; NominalDiffTime -&gt; CalendarDiffTime
</span><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-var">CalendarDiffTime</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070856"><span class="hs-identifier hs-var">m</span></a></span><span> </span><span class="annot"><span class="annottext">(NominalDiffTime -&gt; CalendarDiffTime)
-&gt; NominalDiffTime -&gt; CalendarDiffTime
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">Integer -&gt; NominalDiffTime
forall a. Num a =&gt; Integer -&gt; a
</span><a href="../../base/src/GHC.Num.html#fromInteger"><span class="hs-identifier hs-var">fromInteger</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070855"><span class="hs-identifier hs-var">d</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime -&gt; NominalDiffTime -&gt; NominalDiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">*</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="Data.Time.Clock.Internal.NominalDiffTime.html#nominalDay"><span class="hs-identifier hs-var">nominalDay</span></a></span><span>
</span><span id="line-52"></span><span>
</span><span id="line-53"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#calendarTimeTime"><span class="hs-identifier hs-type">calendarTimeTime</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Data.Time.Clock.Internal.NominalDiffTime.html#NominalDiffTime"><span class="hs-identifier hs-type">NominalDiffTime</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-type">CalendarDiffTime</span></a></span><span>
</span><span id="line-54"></span><span id="calendarTimeTime"><span class="annot"><span class="annottext">calendarTimeTime :: NominalDiffTime -&gt; CalendarDiffTime
</span><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#calendarTimeTime"><span class="hs-identifier hs-var hs-var">calendarTimeTime</span></a></span></span><span> </span><span id="local-6989586621679070851"><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679070851"><span class="hs-identifier hs-var">dt</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; NominalDiffTime -&gt; CalendarDiffTime
</span><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-var">CalendarDiffTime</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><span class="hs-number">0</span></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679070851"><span class="hs-identifier hs-var">dt</span></a></span><span>
</span><span id="line-55"></span><span>
</span><span id="line-56"></span><span class="hs-comment">-- | Scale by a factor. Note that @scaleCalendarDiffTime (-1)@ will not perfectly invert a duration, due to variable month lengths.</span><span>
</span><span id="line-57"></span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#scaleCalendarDiffTime"><span class="hs-identifier hs-type">scaleCalendarDiffTime</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Integer</span></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-type">CalendarDiffTime</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-type">CalendarDiffTime</span></a></span><span>
</span><span id="line-58"></span><span id="scaleCalendarDiffTime"><span class="annot"><span class="annottext">scaleCalendarDiffTime :: Integer -&gt; CalendarDiffTime -&gt; CalendarDiffTime
</span><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#scaleCalendarDiffTime"><span class="hs-identifier hs-var hs-var">scaleCalendarDiffTime</span></a></span></span><span> </span><span id="local-6989586621679070849"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070849"><span class="hs-identifier hs-var">k</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-type">CalendarDiffTime</span></a></span><span> </span><span id="local-6989586621679070848"><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070848"><span class="hs-identifier hs-var">m</span></a></span></span><span> </span><span id="local-6989586621679070847"><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679070847"><span class="hs-identifier hs-var">d</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">Integer -&gt; NominalDiffTime -&gt; CalendarDiffTime
</span><a href="Data.Time.LocalTime.Internal.CalendarDiffTime.html#CalendarDiffTime"><span class="hs-identifier hs-var">CalendarDiffTime</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070849"><span class="hs-identifier hs-var">k</span></a></span><span> </span><span class="annot"><span class="annottext">Integer -&gt; Integer -&gt; Integer
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">*</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070848"><span class="hs-identifier hs-var">m</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">Integer -&gt; NominalDiffTime
forall a. Num a =&gt; Integer -&gt; a
</span><a href="../../base/src/GHC.Num.html#fromInteger"><span class="hs-identifier hs-var">fromInteger</span></a></span><span> </span><span class="annot"><span class="annottext">Integer
</span><a href="#local-6989586621679070849"><span class="hs-identifier hs-var">k</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime -&gt; NominalDiffTime -&gt; NominalDiffTime
forall a. Num a =&gt; a -&gt; a -&gt; a
</span><a href="../../base/src/GHC.Num.html#%2A"><span class="hs-operator hs-var">*</span></a></span><span> </span><span class="annot"><span class="annottext">NominalDiffTime
</span><a href="#local-6989586621679070847"><span class="hs-identifier hs-var">d</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-59"></span></pre></body></html>